import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class 登陆  {

    public void Enter() {

        JFrame enter = new JFrame("登录");
        enter.setLayout(new FlowLayout());

        JLabel username = new JLabel("用户名");
        JLabel usernume = new JLabel("密码");
        JTextField usernamet = new JTextField(18);
        JTextField usernumt = new JTextField(18);

        JButton LoginB = new JButton("登录");
        LoginB.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                FirstWindow firstWindow = new FirstWindow();
                firstWindow.Window1();
            }
        });

        JButton regisB = new JButton("注册");
        regisB.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                注册 two = new 注册();
                two.Registration();
            }
        });



        JPanel panel1 = new JPanel();
        JPanel panel2 = new JPanel();


        enter.add(username);
        enter.add(usernamet);
        enter.add(usernume);
        enter.add(usernumt);
        enter.add(LoginB);
        enter.add(regisB);

        enter.pack();
        enter.setSize(300,150);
        enter.setVisible(true);


    }



}
